import {setServer} from "@/utils/axios";
import {fireUrl} from "../../../url";
const fireRequest = setServer(fireUrl);

// 获取消防楼宇管理员
export function getFireBuildingManager(query) {
  return fireRequest({
    url: '/manager/',
    method: 'get',
    params: query
  })
}

// 新增消防楼宇管理员
export function addFireBuildingManager(query) {
  return fireRequest({
    url: '/manager/',
    method: 'post',
    data: query
  })
}

// 修改消防楼宇管理员
export function uupdateFireBuildingManager(query) {
  return fireRequest({
    url: '/manager/',
    method: 'put',
    data: query
  })
}


// 删除消防楼宇管理员
export function deleteFireBuildingManager(id) {
  return fireRequest({
    url: '/manager/',
    method: 'delete',
  })
}


// 获取所有可绑定消防楼宇
export function getAllFireBuildingManager() {
  return fireRequest({
    url: '/manager/listAll',
    method: 'get',
  })
}

// 消防管理员绑定楼宇
export function fireManagerBindBuilding(query) {
  return fireRequest({
    url: '/manager/bindBuilding',
    method: 'post',
    params: query
  })
}
